package com.huluobo.a2202mvvm_im_douyindemo.addFriend;

import androidx.lifecycle.MutableLiveData;

import com.huluobo.a2202mvvm_im_douyindemo.mvvmBase.BaseViewModel;

/**
 * Created by LC on 2024/4/24.
 */
public class AddFriendViewModel extends BaseViewModel<AddFriendRepo> {
    MutableLiveData<String> addFriendSuccess = new MutableLiveData<>();
    MutableLiveData<String> addFriendFailed = new MutableLiveData<>();

    public void addFriend(String username, String reason) {
        repo.addFriend(username, reason, addFriendSuccess, addFriendFailed);
    }

    @Override
    protected AddFriendRepo createRepo() {
        return new AddFriendRepo();
    }
}
